package com.bazhua.bazo.repository.model;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class CouponDetail {

    private Long id;

    private String couponName;

    private String couponNumber;

    public String getShopLogo() {
        return shopLogo;
    }

    public void setShopLogo(String shopLogo) {
        this.shopLogo = shopLogo;
    }

    private String shopLogo;

    private String statusDetail;

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    private String remark;
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date effectiveTimeStart;

    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date effectiveTimeEnd;

    private Integer quantity;

    private String logoUrl;

    private String shopRemark;

    public String getExplain() {
        return explain;
    }

    public void setExplain(String explain) {
        this.explain = explain;
    }

    private String explain;

    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private Integer status;

    private String shopName;

    private String shopArea;

    public Long getShopAreaId() {
        return shopAreaId;
    }

    public void setShopAreaId(Long shopAreaId) {
        this.shopAreaId = shopAreaId;
    }

    public String getShopStreet() {
        return shopStreet;
    }

    public void setShopStreet(String shopStreet) {
        this.shopStreet = shopStreet;
    }

    public Long getShopStreetId() {
        return shopStreetId;
    }

    public void setShopStreetId(Long shopStreetId) {
        this.shopStreetId = shopStreetId;
    }

    private Long shopAreaId;
    private String shopStreet;
    private Long shopStreetId;

    public String getShopAdminLogo() {
        return shopAdminLogo;
    }

    public void setShopAdminLogo(String shopAdminLogo) {
        this.shopAdminLogo = shopAdminLogo;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    private String shopAdminLogo;

    private Double latitude;

    private Double longitude;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCouponName() {
        return couponName;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }

    public String getCouponNumber() {
        return couponNumber;
    }

    public void setCouponNumber(String couponNumber) {
        this.couponNumber = couponNumber;
    }

    public Date getEffectiveTimeStart() {
        return effectiveTimeStart;
    }

    public void setEffectiveTimeStart(Date effectiveTimeStart) {
        this.effectiveTimeStart = effectiveTimeStart;
    }

    public Date getEffectiveTimeEnd() {
        return effectiveTimeEnd;
    }

    public void setEffectiveTimeEnd(Date effectiveTimeEnd) {
        this.effectiveTimeEnd = effectiveTimeEnd;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }


    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getShopArea() {
        return shopArea;
    }

    public void setShopArea(String shopArea) {
        this.shopArea = shopArea;
    }

    public String getShopRemark() {
        return shopRemark;
    }

    public void setShopRemark(String shopRemark) {
        this.shopRemark = shopRemark;
    }

    public String getShopAddress() {
        return shopAddress;
    }

    public void setShopAddress(String shopAddress) {
        this.shopAddress = shopAddress;
    }

    private String shopAddress;

    public String getShopAddressName() {
        return shopAddressName;
    }

    public void setShopAddressName(String shopAddressName) {
        this.shopAddressName = shopAddressName;
    }

    private String shopAddressName;

    private Boolean repetition;

    private String couponStatusDetail;

    public void setCouponStatusDetail(String couponStatusDetail) {
        this.couponStatusDetail = couponStatusDetail;
    }

    public String getCouponStatusDetail() {
        return couponStatusDetail;
    }

    public Boolean getRepetition() {
        return repetition;
    }

    public void setRepetition(Boolean repetition) {
        this.repetition = repetition;
    }

    public String getStatusDetail() {
        if (status == 1){
            this.statusDetail = "已使用";
        } else if (status == 2){
            this.statusDetail = "未领取";
        }else {
            this.statusDetail = "未使用";
        }
        return statusDetail;
    }
}
